﻿using Basic.FormRemoteModel.UserForm;
using Basic.FormRemoteModel.UserForm.Model;
using Basic.UserFormService.Calculate.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.UserFormService.RpcEvent
{
    internal class FormStateCalculateEvent : IRpcApiService
    {
        private readonly IFormStateCalculate _Service;

        public FormStateCalculateEvent ( IFormStateCalculate service )
        {
            this._Service = service;
        }
        public List<CalculateColState> CalculateFormColState ( CalculateFormColState obj )
        {
            return this._Service.Calculate(obj.FormId, obj.Arg);
        }
    }
}
